package com.gxa.service.Impl;

import com.gxa.domain.entity.Member;
import com.gxa.domain.entity.User;
import com.gxa.mapper.UserMapper;
import com.gxa.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User findUserById(int userId) {
        User user = new User();
        user = userMapper.queryById(userId);
        System.out.println("查询结果："+user);
        return user;
    }



}
